<?php
    function myAutoloader($classname)
    {
        static $classpath;
        if ('' == $classpath)
        {
            if (function_exists('eaccelerator_get'))
            {
                $classpath = eaccelerator_get('lb_ysq');
                if (false == $classpath)
                {
                    include('map.php');
                    eaccelerator_put('lb_ysq', $classpath);
                }
            }
            else if(function_exists('apc_fetch'))
            {
                $classpath = apc_fetch('lb_ysq');
                if (false == $classpath)
                {
                    include('map.php');
                    apc_store('lb_ysq', $classpath);
                }
            }else{
                    include('map.php');
            }
        }
        if (!empty($classpath[$classname]))
        {
            include($classpath[$classname]);
        }
    }
